import request from '@/utils/request'

// 查询工作流模块列表
export function listApprover(query) {
  return request({
    url: '/mes/pro/approver/base/list',
    method: 'get',
    params: query
  })
}

// 查询工作流模块详细
export function getApprover(id) {
  return request({
    url: '/mes/pro/approver/base/' + id,
    method: 'get'
  })
}

// 新增工作流模块
export function addApprover(data) {
  return request({
    url: '/mes/pro/approver/base',
    method: 'post',
    data: data
  })
}

// 修改工作流模块
export function updateApprover(data) {
  return request({
    url: '/mes/pro/approver/base',
    method: 'put',
    data: data
  })
}

// 删除工作流模块
export function delApprover(id) {
  return request({
    url: '/mes/pro/approver/base/' + id,
    method: 'delete'
  })
}
